<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Battle: C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Jeu.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Battle
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Jeu.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#pragma once</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#define WANTDLLEXP</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">        #ifdef WANTDLLEXP       //exportation dll</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">                #define DLL             __declspec( dllexport )</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">                #define EXTERNC extern &quot;C&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">        #else</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">                #define DLL             //standard</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">                #define EXTERNC</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;MonteurPartie.h&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;Joueur.h&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;Position.h&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;CaseStationOrbitale.h&quot;</span>
<a name="l00025"></a>00025 
<a name="l00030"></a><a class="code" href="class_jeu.html">00030</a> <span class="keyword">class </span>DLL <a class="code" href="class_jeu.html">Jeu</a> {
<a name="l00031"></a>00031 <span class="keyword">protected</span> :
<a name="l00032"></a><a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">00032</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a>; 
<a name="l00033"></a><a class="code" href="class_jeu.html#a121da4698325bf84dfa0960a368091fd">00033</a>         <a class="code" href="class_monteur_partie.html">MonteurPartie</a>* <a class="code" href="class_jeu.html#a121da4698325bf84dfa0960a368091fd">monteurPartie</a>;   
<a name="l00035"></a>00035 <span class="keyword">public</span> :
<a name="l00040"></a>00040         <a class="code" href="class_jeu.html">Jeu</a>(<span class="keywordtype">int</span>);
<a name="l00041"></a>00041 
<a name="l00046"></a>00046         <a class="code" href="class_jeu.html">Jeu</a>(<a class="code" href="class_monteur_partie.html">MonteurPartie</a>*);
<a name="l00047"></a>00047 
<a name="l00053"></a>00053         <a class="code" href="class_monteur_partie.html">MonteurPartie</a>* getMonteurPartie() <span class="keyword">const</span>;
<a name="l00054"></a>00054 
<a name="l00060"></a>00060         <span class="keywordtype">void</span> setMonteurPartie(<a class="code" href="class_monteur_partie.html">MonteurPartie</a>*);
<a name="l00061"></a>00061 
<a name="l00066"></a>00066         <a class="code" href="class_partie.html">Partie</a>* getPartie() <span class="keyword">const</span>;
<a name="l00067"></a>00067 
<a name="l00072"></a>00072         <span class="keywordtype">void</span> creerPartie();
<a name="l00073"></a>00073         
<a name="l00080"></a>00080         <span class="keywordtype">void</span> addJoueur(<a class="code" href="class_joueur.html">Joueur</a>*, <span class="keywordtype">int</span>);
<a name="l00081"></a>00081                 
<a name="l00086"></a>00086         vector&lt;Joueur*&gt; getJoueurs() <span class="keyword">const</span>;
<a name="l00087"></a>00087         
<a name="l00088"></a>00088         <span class="comment">/******************** METHODES WRAPPER ********************/</span>    
<a name="l00093"></a>00093         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lancerDe() <span class="keyword">const</span>;
<a name="l00094"></a>00094 
<a name="l00100"></a>00100         vector&lt;unsigned int&gt; lancerDesJoueurCourant() <span class="keyword">const</span>;
<a name="l00101"></a>00101 
<a name="l00110"></a>00110         <span class="keywordtype">void</span> addJoueur(<span class="keywordtype">string</span> nom, <span class="keywordtype">string</span> flotte1, <span class="keywordtype">string</span> flotte2, <span class="keywordtype">int</span> rang);
<a name="l00111"></a>00111 
<a name="l00119"></a>00119         <span class="keywordtype">void</span> addJoueur(<span class="keywordtype">string</span> nom, <span class="keywordtype">string</span> flotte, <span class="keywordtype">int</span> rang);
<a name="l00120"></a>00120 
<a name="l00125"></a>00125         <span class="keywordtype">void</span> instancierGrille();
<a name="l00126"></a>00126 
<a name="l00131"></a>00131         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getLongueurPlateau();
<a name="l00132"></a>00132 
<a name="l00137"></a>00137         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getHauteurPlateau();
<a name="l00138"></a>00138 
<a name="l00145"></a>00145         <span class="keywordtype">int</span> getTypeCase(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;
<a name="l00146"></a>00146 
<a name="l00153"></a>00153         <span class="keywordtype">int</span> getCouleurFlotte(<span class="keywordtype">int</span> rangJoueur, <span class="keywordtype">int</span> flotte);
<a name="l00154"></a>00154 
<a name="l00159"></a>00159         vector&lt;vector&lt;pair&lt;double,double&gt;&gt;&gt; getVectorAsteroides();
<a name="l00160"></a>00160 
<a name="l00166"></a>00166         <span class="keywordtype">string</span> getNomJoueur(<span class="keywordtype">int</span> rang);
<a name="l00167"></a>00167 
<a name="l00172"></a>00172         <span class="keywordtype">bool</span> joueurCourantHasArtefact() <span class="keyword">const</span>;
<a name="l00173"></a>00173 
<a name="l00178"></a>00178         <span class="keywordtype">int</span> getTypeVaisseauCourant() <span class="keyword">const</span>;
<a name="l00179"></a>00179 
<a name="l00184"></a>00184         <span class="keywordtype">int</span> getCouleurFlotteCourante() <span class="keyword">const</span>;
<a name="l00185"></a>00185 
<a name="l00192"></a>00192         <span class="keywordtype">int</span> getNbArtefactsCase(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;
<a name="l00193"></a>00193 
<a name="l00198"></a>00198         <span class="keywordtype">int</span> getTypeCaseVaisseauCourant() <span class="keyword">const</span>;
<a name="l00199"></a>00199 
<a name="l00204"></a>00204         <span class="keywordtype">int</span> getNbChargesVaisseauCourant() <span class="keyword">const</span>;
<a name="l00205"></a>00205 
<a name="l00210"></a>00210         <span class="keywordtype">int</span> getXFlotteJoueur(<span class="keywordtype">int</span> rang, <span class="keywordtype">int</span> flotte) <span class="keyword">const</span>;
<a name="l00211"></a>00211 
<a name="l00218"></a>00218         <span class="keywordtype">int</span> getYFlotteJoueur(<span class="keywordtype">int</span> rang, <span class="keywordtype">int</span> flotte) <span class="keyword">const</span>;
<a name="l00219"></a>00219 
<a name="l00228"></a>00228         <span class="keywordtype">void</span> setPositionFlotteJoueur(<span class="keywordtype">int</span> rang, <span class="keywordtype">int</span> flotte, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00229"></a>00229 
<a name="l00234"></a>00234         <span class="keywordtype">int</span> getXVaisseauCourant() <span class="keyword">const</span>;
<a name="l00235"></a>00235 
<a name="l00240"></a>00240         <span class="keywordtype">int</span> getYVaisseauCourant() <span class="keyword">const</span>;
<a name="l00241"></a>00241 
<a name="l00246"></a>00246         <span class="keywordtype">int</span> getNbJoueurs() <span class="keyword">const</span>;
<a name="l00247"></a>00247 
<a name="l00252"></a>00252         <span class="keywordtype">int</span> getIndiceFlotteCourante() <span class="keyword">const</span>;
<a name="l00253"></a>00253 
<a name="l00260"></a>00260         <span class="keywordtype">int</span> getCouleurStationCase(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;
<a name="l00261"></a>00261 
<a name="l00269"></a>00269         <span class="keywordtype">void</span> setCouleurStationCase(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, Flotte::CouleurFlotte couleurStation);
<a name="l00270"></a>00270 
<a name="l00277"></a>00277         pair&lt;double,double&gt; getPointArrive(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> resCos, <span class="keywordtype">double</span> resSin);
<a name="l00278"></a>00278 
<a name="l00285"></a>00285         vector&lt;pair&lt;double,double&gt;&gt; getCasesAccessibles(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00286"></a>00286 
<a name="l00293"></a>00293         vector&lt;pair&lt;double,double&gt;&gt; caseAccessibleDirection(<a class="code" href="class_position.html">Position</a>*,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,vector&lt;pair&lt;double,double&gt;&gt;&amp; casesAccessibles);
<a name="l00294"></a>00294 
<a name="l00300"></a>00300         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbArtefactsJoueurCourant() <span class="keyword">const</span>;
<a name="l00301"></a>00301 
<a name="l00307"></a>00307         <a class="code" href="class_joueur.html">Joueur</a>* getJoueurCourant() <span class="keyword">const</span>;
<a name="l00308"></a>00308 
<a name="l00314"></a>00314         <a class="code" href="class_vaisseau.html">Vaisseau</a>* getVaisseauCourant() <span class="keyword">const</span>;
<a name="l00315"></a>00315 
<a name="l00321"></a>00321         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getRangJoueurCourant() <span class="keyword">const</span>;
<a name="l00322"></a>00322 
<a name="l00328"></a>00328         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getIndiceJoueurCourant() <span class="keyword">const</span>;
<a name="l00329"></a>00329 
<a name="l00335"></a>00335         <span class="keywordtype">void</span> setIndiceJoueurCourant(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i);
<a name="l00336"></a>00336 
<a name="l00342"></a>00342         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbVaisseauxJoueurCourant() <span class="keyword">const</span>;
<a name="l00343"></a>00343 
<a name="l00350"></a>00350         <span class="keywordtype">void</span> deplacerVaisseauCourant(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>);
<a name="l00351"></a>00351 
<a name="l00356"></a>00356         <span class="keywordtype">void</span> joueurSuivant();
<a name="l00357"></a>00357 };
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 EXTERNC DLL <a class="code" href="class_jeu.html">Jeu</a>* Jeu_New(<span class="keywordtype">int</span> nbJoueurs);
<a name="l00360"></a>00360 EXTERNC DLL <span class="keywordtype">void</span> Jeu_Delete(<a class="code" href="class_jeu.html">Jeu</a>* j);
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 11 2012 23:30:05 for Space Battle by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
